package icu.feigroup.infrastructure.dao;

import icu.feigroup.infrastructure.dao.po.GroupOrderList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * projectName:icu.feigroup.infrastructure.dao
 *
 * @author 飞
 * @since 2025/2/22 22:01
 * description:
 */
@Mapper
public interface GroupOrderListMapper {
    void insert(GroupOrderList groupOrderListReq);

    GroupOrderList queryGroupOrderRecordByOutTradeNo(GroupOrderList groupOrderListReq);

    Integer queryOrderCountByActivityId(GroupOrderList groupOrderListReq);

    int updateOrderStatusToComplete(GroupOrderList groupOrderListReq);

    List<String> queryGroupBuyCompleteOrderOutTradeNoListByTeamId(String teamId);

    GroupOrderList queryGroupBuyOrderRecordByOutTradeNo(GroupOrderList groupOrderListReq);

    List<GroupOrderList> queryInProgressUserGroupBuyOrderDetailListByUserId(GroupOrderList groupOrderListReq);

    List<GroupOrderList> queryInProgressUserGroupBuyOrderDetailListByRandom(GroupOrderList groupOrderListReq);

    List<GroupOrderList> queryInProgressUserGroupBuyOrderDetailListByActivityId(Long activityId);
}
